﻿<Grid x:Class="LFSRecord2.View.TimelineStructures.PropertyValueBindingControl"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
            xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
            xmlns:lfsconv="clr-namespace:LFSRecord2.View.Converters"
            mc:Ignorable="d" 
            d:DesignWidth="22" d:DesignHeight="13" 
            Width="22" Height="13" Background="Transparent"
            MouseLeftButtonDown="Grid_MouseLeftButtonDown" MouseRightButtonDown="Grid_MouseRightButtonDown" Loaded="Grid_Loaded">
    <Grid.Resources>
        <lfsconv:ValueBindingToolTipConverter x:Key="valueBindingToolTipConverter" />
        <lfsconv:PropertyValueBrushConverter x:Key="propertyValueBrushConverter" />
        <lfsconv:PropertyBindingIconImageConverter x:Key="propertyBindingIconImageConverter" />
        <BitmapImage x:Key="PropBindingIconOff" UriSource="pack://application:,,,/data/bitmaps/icons/PropertyBindingIconOff.png" />
        <BitmapImage x:Key="PropBindingIconOn" UriSource="pack://application:,,,/data/bitmaps/icons/PropertyBindingIconOn.png" />
    </Grid.Resources>
    <Border BorderBrush="{Binding HasBoundProperty, Converter={StaticResource propertyValueBrushConverter}, ConverterParameter=Border}" 
            Background="{Binding HasBoundProperty, Converter={StaticResource propertyValueBrushConverter}, ConverterParameter=Background}" 
            BorderThickness="1" 
            CornerRadius="4">
        <Image Source="{Binding HasBoundProperty, Converter={StaticResource propertyBindingIconImageConverter}}" 
               Margin="2,0.8,0,0" 
               Width="15" Height="5"
               VerticalAlignment="Center"
               HorizontalAlignment="Left"
               IsHitTestVisible="False" />
    </Border>
</Grid>
